export default {
  operation_ok: false,
  setPermission() {
    var user = sessionStorage.getItem('user');
    if (user != null) {
      user = JSON.parse(user);
      var Operatetype = user.type;
      if (Operatetype == '1') {
        this.operation_ok = true;
      } else if (Operatetype == '2') {
        this.operation_ok = false;
      }
    }
    console.log('权限已经改变')
  }
}
